﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using GBT.Entity;
using GBT.IBusiness.GBT_Report;
using GBT.Util;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace GBT.AmoebaManage.Controllers.GBT_Report
{
    [Route("/GBT_Report/[controller]/[action]")]
    public class GBT_AmoebaReportController : BaseApiController
    {
        #region DI

        public GBT_AmoebaReportController(IGBT_AmoebaReportBusiness gBT_AmoebaReportBusiness)
        {
            _AmoebaReportBusiness = gBT_AmoebaReportBusiness;
        }

        IGBT_AmoebaReportBusiness _AmoebaReportBusiness { get; }

        #endregion

        #region 获取

        [HttpPost]
        public async Task<PageResult<GBT_ServiceRequestDTO>> GetAmoebaDetailReport(PageInput<GBT_ServiceRequestConditionDTO> input)
        {
            return await _AmoebaReportBusiness.GET_AmoebaDetailReportAsync(input);
        }

        [HttpPost]
        public async Task<List<GBT_ServiceRequestDTO>> ExportAmoebaDetailReport(PageInput<GBT_ServiceRequestConditionDTO> input)
        {
            return await _AmoebaReportBusiness.GET_ExportAmoebaDetailReportAsync(input);
        }

        #endregion

    }
}
